//
//  XLMineHeadImageCellModel.m
//  Mine
//
//  Created by 于鹏 on 2017/8/26.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#import "XLMineHeadImageCellModel.h"
NSString *const XLMineHeadImageCellModelCellClass = @"XLMineHeadImageTableViewCell";
#define XL_KHeadImageCellHeight 100
@implementation XLMineHeadImageCellModel

- (instancetype)init {
    self = [super init];
    if (self) {
        self.cellClass = XLMineHeadImageCellModelCellClass;
        self.cellHeight = XL_KHeadImageCellHeight;
        self.imageSize = CGSizeMake(XL_KHeadImageWidth, XL_KHeadImageHeight);
        self.cornerRadius = 8.0f;
        self.detailColor = XL_KTitleColor;
        self.detailFont = XL_KTitleFont;
    }
    return self;
}

- (instancetype)initWithActionBlock:(ClickActionBlock)block {
    self = [self init];
    if (self) {
        self.actionBlock = block;
    }
    return self;
}
- (instancetype)initWithPlaceholderImage:(UIImage *)placeholderImage actionBlock:(ClickActionBlock)block {
    self = [self initWithActionBlock:block];
    if (self) {
        self.placeHolderImage = placeholderImage;
    }
    return self;
}

//- (instancetype)initWithTitle:(NSString *)title detailText:(NSString *)detailText {
//    self = [super initWithTitle:title];
//    if (self) {
//        self.detailText = detailText;
//        self.cellClass = XLMineHeadImageCellModelCellClass;
//        self.cellHeight = XL_KHeadImageCellHeight;
//        self.detailColor = XL_KTitleColor;
//        self.detailFont = XL_KTitleFont;
//    }
//    return self;
//}


//- (instancetype)initWithTitle:(NSString *)title detailText:(NSString *)detailText placeholderImage:(UIImage *)placeholderImage imageUrl:(NSString *)imageUrl {
//    self = [self init];
//    if (self) {
//        self.title = title;
//        self.detailText = detailText;
//        self.placeHolderImage = placeholderImage;
//        self.imageUrl = imageUrl;
//        
//    }
//    return self;
//}

//
//- (instancetype)initWithTitle:(NSString *)title detailText:(NSString *)detailText actionBlock:(ClickActionBlock)block {
//    self = [self initWithTitle:title detailText:detailText];
//    if (self) {
//        self.actionBlock = block;
//    }
//    return self;
//}

- (void)setTitle:(NSString *)title detailText:(NSString *)detailText imageUrl:(NSString *)imageUrl {
    self.title = title;
    self.detailText = detailText;
    self.imageUrl = imageUrl;
}


@end
